package com.cloudm.technician.ui.modules.cloudm_box.machine_list

import com.cloudm.technician.data.model.DeviceInfo
import com.cloudm.technician.ui.base.BaseListView
import com.cloudm.technician.ui.base.BasePresenter

/**
 * 作者: wesley
 * 时间: 2017/12/18
 * 描述: 机器列表协议接口
 */
interface MachineListContract {

    interface View : BaseListView<ArrayList<DeviceInfo>> {

        fun deleteSuccess()

        fun deleteFailure(errorMsg: String)

        fun openDeviceDetailActivity(flag: Int, info: DeviceInfo?)

        fun showDoneStatusMsg()
    }

    interface Presenter : BasePresenter {

        fun getMachineListInfo(page: Int, size: Int)

        fun deleteDevice(id: Int)

        fun openActivityByStatus(flag: Int, info: DeviceInfo)

    }

}